~4Dgifts/toolbox/src/apps/cmapDoctor/cmapview README cmapview: simpler X based colormap/visual viewer. You can use this app to diagnose/debug/verify colormaps and in applications that use multiple colormaps and visuals. The application starts by scanning the entire X window hierarchy starting with the RootWindow. Potentially, this tree can consist of thousand's of windows so this operation can take some time (usually on the order of seconds). The list of colormaps generated represents the list of unique colormaps each of which is currently associated with a window. X provides no way of determining all of the colormaps registered with the server. So instead, windowAttributes is retrieved for each of the windows. This contains both the colormap and visual of the window. Additionally, special visual types, like underlay, overlay and popup visuals, are also registered by using XLayerInfo routines (available on the Developer Toolbox in src/exampleCode/X/Xserver). At the end of the scanning sequence, a list is produced. You can click in the viewing window to cycle through the list of colormaps. In the title bar of the window is displayed the 1) number of the list entry which corresponds to the list printed at the end of the scan, 2) the visual type: normal planes, overlay, underlay or popup, 3) the depth of the visual, and 4) the visual itself.
Source
Documentation
Reference